import {
    createApp
} from 'vue'
import {
    createPinia
} from 'pinia'
import App from './App.vue'
import router from './router'
import {
    Button,
    Calendar,
    Checkbox,
    CheckboxGroup,
    Field,
    Grid,
    GridItem,
    Icon,
    Notify,
    Popup,
    Search,
    Tab,
    Tabs
} from 'vant'
import 'vant/lib/index.css'
import 'vant/es/popup/style'
import 'vant/es/notify/style'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

const app = createApp(App)
const pinia = createPinia()

app.use(pinia)
app.use(router)
app.use(Button)
app.use(Field)
app.use(Grid)
app.use(GridItem)
app.use(Icon)
app.use(Tab)
app.use(Tabs)
app.use(Calendar)
app.use(Popup)
app.use(Search)
app.use(Notify)
app.use(Checkbox)
app.use(CheckboxGroup)
app.use(ElementPlus, {
    locale: zhCn,
})

app.mount('#app')